package com.linx.notice.domain.bo;

import com.linx.notice.domain.InfoScopeUser;
import com.linx.common.core.validate.AddGroup;
import com.linx.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;

/**
 * 信息发布—发送范围用户业务对象 info_scope_user
 *
 * @author 泽智科技
 * @date 2024-10-21
 */
@Data
@AutoMapper(target = InfoScopeUser.class, reverseConvertGenerate = false)
public class InfoScopeUserBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long infoScopeUserId;

    /**
     * 范围id
     */
    @NotNull(message = "范围id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long infoScopeId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
